package com.aop.springbootaop.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@TableName("users")
@Document("users")
public class User {
    @TableId
    @Id
    private Long id;
    private String name;
    private Integer age;
}
